/*
 * dsm_launcher_host.cpp
 *
 *  Created on: Dec 15, 2013
 *      Author: m
 */

#include "DSMComun.h"
#include "SharedMemory2.h"
#include "MessageQueue.h"
#include "Semaphore.h"
#include "Sequence.h"
#include "ColaRemotaTransmisor.h"
#include "ColaRemotaReceptor.h"
#include "CPrinter.h"
#include "StringUtils.h"
#include "ProcessAux.h"

using ipc::CPrinter;
using ipc::MessageQueue;
using ipc::SharedMemory2;
using ipc::Semaphore;
using ipc::Sequence;

int main ()
{
    // Crear colas y shared mems

    MessageQueue<PedidoCreacionCanalDSM>::create( DSM_IPC_BASEFILE, COLA_REQUEST_CREACION );
    MessageQueue<PedidoCreacionCanalDSM>::create( DSM_IPC_BASEFILE, COLA_REPLY_CREACION );
    Sequence::create( DSM_IPC_BASEFILE, SEQ_DSM_ID_CANAL );

    ProcessAux::launchProcess( "./dsm_creador_canales" );

    return 0;
}
